package vamp
/**
 * The vamp_serviceweb.Poi entity.
 *
 * @author    
 *
 *
 */
class Poi {
    static mapping = {
         table 'poi'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'idpoi'
         theme column:'idtheme'
         member column:'idmember'
         address column:'idaddress'
    }
    String title
    String description
    Integer ispublic
    Date begindatetime
    Date enddatetime
    String imgurl
    // Relation
    Theme theme
    // Relation
    Member member
    // Relation
    Address address

    static constraints = {
        title(blank: false)
        description(blank: false)
        ispublic(max: 2147483647)
        begindatetime(nullable: true)
        enddatetime(nullable: true)
        imgurl()
        theme()
        member()
        address()
    }
    String toString() {
        return "${id}"
    }
}
